package top.iflyoung.cim.route.constant;

/**
 * Function:
 *
 * @author crossoverJie
 * @author liguiyang
 * Date: 2018/9/10 14:07
 * @since JDK 1.8
 */
public enum RedisPrefix {

    /**
     * 账号前缀
     */
    ACCOUNT_PREFIX("cim-account:"),

    /**
     * 路由信息前缀
     */
    ROUTE_PREFIX("cim-route:"),
    /**
     * 分组前缀
     */
    GROUP_PREFIX("cim-group:"),

    /**
     * 登录状态前缀
     */
    LOGIN_STATUS_PREFIX("cim-login-status"),
    /**
     * 分组群聊
     */
    GROUP_CHAT("cim-group-chat:"),
    /**
     * P2P群聊,使用日期分
     */
    P2P_CHAT("cim-p2p-chat:"),
    /**
     * redis层级分隔符
     */
    SPLIT(":");
    private String prefix;

    RedisPrefix(String prefix) {
        this.prefix = prefix;
    }

    @Override
    public String toString() {
        return this.prefix;
    }
}
